<?php

function InsertBooking($type,$idP,$fName,$lName,$email,$phone,$address,$country,
                    $arrDate,$deparDate,$Other,$status)
{
    global $dbsql,$language;
    
    $postdate      = date('Y-m-d');
    $idP           = intval($idP);
    $status        = intval($status);
    
    $sql_insert    = "INSERT INTO tblbooking 
        (cType,iParentId,cFName,cLName,cEmail,cPhone,cAddress,cCountry,
        cArrivalDate,cDepartureDate,cOther,dPostDate,iStatus,cLanguage) 
    VALUES ('product','$idP','$fName','$lName','$email','$phone','$address','$country',
        '$arrDate','$deparDate','$Other','$postdate','$status','$language')";
        
    $rs            = $dbsql->query($sql_insert);
    if($rs)
    {
        return $dbsql->insert_id();
    }
    return false;    
}
?>